/*
 * @Author: zhuxiaoyi
 * @Date: 2024-01-26 16:09:04
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2024-07-05 11:50:01
 * @Description:
 */
import {
  Body,
  Controller,
  Del,
  Get,
  Inject,
  Param,
  Put,
  Query,
  Post
} from '@midwayjs/core';
//   import { GraphService } from '../service/graph.service';
import { AlgorithmTypeService } from '../service/algorithmType.service';

@Controller('/algorithmType')
export class AlgorithmTypeController {
  @Inject()
  algorithmTypeService: AlgorithmTypeService;

  @Get('/getTree', { summary: '算法类型树形列表' })
  async algorithmTypes() {
    return await this.algorithmTypeService.algorithmTypes();
  }

  /* @Post('/addType', { summary: '添加分类'})
  async getNodeParams(@Param('id') id: number, @Body() node: ) {
    // return await this.graphService.getNodeParams(id, node.id);
  } */
}
